-- GENERATED SPELL FOR [Aurius] --


function spell0_10917(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(14517,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10917', 30250, 1)
end

function spell1_10917(pUnit, Event) --@Divine Shield,Self--
pUnit:FullCastSpellOnTarget(13874,pUnit)
pUnit:RegisterEvent('Sorts_10917', 8250, 1)
end

function spell2_10917(pUnit, Event) --@Exorcism,n/a--
pUnit:FullCastSpellOnTarget(17149,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10917', 530, 1)
end

function spell3_10917(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(13952,pUnit)
pUnit:RegisterEvent('Sorts_10917', 2500, 1)
end

function Sorts_10917(pUnit, Event)
local choix_sorts_10917 = math.random(0, 3)
if choix_sorts_10917 == 0 then
pUnit:RegisterEvent('spell0_10917', 1, 1)
end
if choix_sorts_10917 == 1 then
pUnit:RegisterEvent('spell1_10917', 1, 1)
end
if choix_sorts_10917 == 2 then
pUnit:RegisterEvent('spell2_10917', 1, 1)
end
if choix_sorts_10917 == 3 then
pUnit:RegisterEvent('spell3_10917', 1, 1)
end
end

function mob10917_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10917', math.random(1500, 3000), 1)
end

function mob10917_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10917_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10917_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10917, 1, 'mob10917_Action')
RegisterUnitEvent(10917, 2, 'mob10917_Leave')
RegisterUnitEvent(10917, 3, 'mob10917_Kill')
RegisterUnitEvent(10917, 4, 'mob10917_Die')
